<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品展示</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
</head>
<body>
<!--商品列表展示-->
<table class="table">
    <tr>
        <th>ID</th>
        <th>商品名</th>
        <th>库存</th>
        <th>商品图片</th>
        <th>操作</th>
    </tr>
    {foreach $arr as $k=>$v}
    <tr>
        <td>{$v.id}</td>
        <td>{$v.gname}</td>
        <td>{$v.storage}</td>
        <td><img src="{$v.images}" style="width: 60px;"></td>
        <td>
            <a href="/goods/info/?g_id={$v.g_id}">编辑</a>
            <a href="/goods/delete/?g_id={$v.g_id}">删除</a>
        </td>
    </tr>
    {/foreach}
</table>
{$arr|raw}
</body>
</html>